cask "unity-web-player" do
  version :latest
  sha256 :no_check

  url "https://webplayer.unity3d.com/download_webplayer-3.x/webplayer-mini.dmg"
  name "Unity Web Player"
  homepage "https://unity3d.com/webplayer"

  pkg "Install Unity Web Player.pkg"

  uninstall pkgutil: "com.unity.UnityWebPlayer",
            delete:  "/Library/Internet Plug-Ins/Unity Web Player.plugin"

  caveats do
    discontinued
  end
end
